<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <div id="app">
    <!--lazy 惰性更新，trim 删除前后空格，number将字符串转换成数字类型   触发的是change-->
    <input type="text" v-model.lazy.trim.number="price">
    <pre>{{price}}</pre>

    <label>
    男
    <input type="radio" v-model="sex" value='male'>
    </label>
    <label>
    女
    <input type="radio" v-model="sex" value='female'>
    <input type="radio" v-model="sex" value='female'>
    </label>
    <br>
    <pre>{{sex}}</pre>


    <label>
    男
    <input type="checkbox" v-model="like" value='male'>
    </label>
    <label>
    女
    <input type="checkbox" v-model="like" value='female'>
    </label>
    <br>
    <pre>{{like}}</pre>

    <div>你来自哪里？</div>
    <select v-model='from'>
      <option value="1">王家沟</option>
      <option value="2">李家沟</option>
    </select>
    {{from}}
    <div>你要去哪里？</div>
    <select v-model='dest' multiple>
      <option value="1">王家沟</option>
      <option value="2">李家沟</option>
      <option value="3">猪家沟</option>
      <option value="4">耶家沟</option>
      <option value="5">呃家沟</option>
      <option value="6">及家沟</option>
    </select>
    {{dest}}
  </div>
  <script src="../lib/vue.js"></script>
  <script src="js/main.js"></script>

</body>

</html>
